home *** CD-ROM | disk | FTP | other *** search
- on doButton whereTo, frameOffset, whichTransition, howLong
- global gTweeningButtonPropertyList
- if ilk(whereTo) = #propList then
- set localPropertyList to whereTo
- else
- set localPropertyList to gTweeningButtonPropertyList
- end if
- set the member of sprite the clickOn to getaProp(localPropertyList, the clickOn) + 1
- updateStage()
- set the member of sprite the clickOn to getaProp(localPropertyList, the clickOn)
- updateStage()
- puppetSprite(the clickOn, 0)
- if voidp(whereTo) or (ilk(whereTo) = #propList) then
- return 1
- else
- puppetTransition(0)
- removeButtons()
- if not voidp(whichTransition) then
- puppetTransition(whichTransition, howLong)
- end if
- if stringp(whereTo) then
- if the labelList contains whereTo & RETURN then
- go(whereTo)
- end if
- else
- if integerp(whereTo) then
- if voidp(frameOffset) then
- go(marker(whereTo))
- else
- go(marker(whereTo) + frameOffset)
- end if
- end if
- end if
- FindButtons()
- end if
- return 1
- end
-